package cn.zymall.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import java.io.Serializable;

/**
 * @author lxh
 * @Description TODO
 * @date 2020/8/23 11:06
 * @Classname SpuBaseAttr
 **/
@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "spu_base_attr")
public class SpuBaseAttr  extends BaseEntity implements Serializable {


	/**
	 * 商品编号
	 */
	@TableField(value = "SPU_ID")
	private Integer spuId;


	/**
	 * 属性编号
	 */
	@TableField(value="SPU_ATTR_ID")
	private Integer spuAttrId;


	/**
	 * 属性值编号
	 */
	@TableField(value="SPU_ATTR_VALUE_ID")
	private Integer spuAttrValueId;


	/**
	 * 是否是sku
	 */
	@TableField(value = "SKU_STATUS")
	private Byte skuStatus;


	/**
	 * SKU编号
	 */
	@TableField(value = "SKU_ID")
	private Integer skuId;


	private Double price;


	private String attrName;
	private String attrValue;

	private Integer sum;



	private String skuImg;

	private static final long serialVersionUID = 1L;

	public static final String COL_SPU_ID = "SPU_ID";

	public static final String COL_SPU_ATTR_ID="SPU_ATTR_ID";

	public static final String COL_SPU_ATTR_VALUE_ID="SPU_ATTR_VALUE_ID";

	public static final String COL_SKU_STATUS="SKU_STATUS";

	public static final String COL_SKU_ID="SKU_ID";

}
